using UnityEngine;
using System.Collections;

namespace Perks{
	public class FastManeuvers : Perk {
		public const string Name = "Fast Maneuvers";
		
		private SUB_ATTRIBUTES affectingSubAttribute;
				
		public FastManeuvers(){
			this.equipCost = 1;
			this.description = 
				"Reduces time for Reloading and Changing \n" +
				"Weapon based on Agility attribute";
			this.SetRequirements();	
		}
		
		protected override void SetRequirements ()
		{
			requirements = new RequirementPair[2];
			requirements[0].baseAttribute = ATTRIBUTES.AGILITY;
			requirements[0].requiredValue = 3;
            requirements[1].baseAttribute = ATTRIBUTES.TECHNIQUE;
            requirements[1].requiredValue = 2;
		}
		public override string GetName ()
		{
			return Name;
		}
		public override void OnEquip (AttributeSet aSet)
		{
			aSet.HasToApplyDependenciesBonus(SUB_ATTRIBUTES.EQUIP_TIME, true);
		}
		public override void OnUnEquip (AttributeSet aSet)
		{
			aSet.HasToApplyDependenciesBonus(SUB_ATTRIBUTES.EQUIP_TIME, false);
		}
	}
}
